home *** CD-ROM | disk | FTP | other *** search
-
- ; ARTIC Installation script.
- ; by AlgarSoft
-
- Version >NIL: exec.library 37
- If WARN
- echo "Sorry Artic Package requires KickStart >= 2.0 !"
- Quit
- EndIf
-
- Echo "*n*n*E[32mA R T I C Installation Script *E[0m *n*n"
- Ask "Do you really want to install ARTIC on your system (y/n)?"
-
- If WARN
-
- assign >NIL: Artic_Disk: exists
- if WARN
- assign Artic_Disk: ""
- set tipo "file"
- else
- set tipo "disk"
- endif
-
- if EXISTS s:Uninstall_Artic
- echo "*nUninstallation script found !*n"
- echo "You Should delete old ARTIC files before installing the new ones"
- echo "answering 'y' to the following question:*n"
- failat 50
- execute s:Uninstall_Artic
- failat 10
- endif
-
- if EXISTS c:requestfile
- set rq "T"
- Echo "*nC:requestfile FOUND!*n"
- Echo "*n (When Asked by the requestfile about where to put files,"
- Echo " You can CREATE a new directory just typing in the new name)."
- else
- set rq "F"
- endif
-
- Echo "*n; Uninstall_Artic script 1994 by Algarsoft" >t:un
- Echo "*n; Artic installed from floppy on : `date`" >>t:un
- Echo "; Artic version: `version Artic_Disk:ar/artic`" >>t:un
- Echo "; Manager version: `version Artic_Disk:ar/aman`*n" >>t:un
- Echo "failat 10" >>t:un
- Echo "Ask *"Do you really want to de-install artic from your System ?*"" >>t:un
- Echo "if WARN" >>t:un
-
- Echo "*n*n*E[32mInstalling ARTIC Files...*E[0m*n"
-
- Echo "HANDLER"
- if exists Artic_Disk:ar/artic020_demo
- ask "Install 68020+ demo version ?"
- if WARN
- copy Artic_Disk:ar/artic020_demo l:artic
- else
- copy Artic_Disk:ar/artic l:artic
- endif
- else
- copy Artic_Disk:ar/artic l:artic
- endif
- Echo " delete l:artic" >>t:un
-
- Echo "COMMANDS"
- if $rq EQ "T"
- set cmds `requestfile TITLE="Select dir for cli commands" DRAWER="C:" DRAWERSONLY SAVEMODE`
- get cmds >NIL:
- if WARN
- quit
- endif
- else
- Echo "*E[32mWARNING*E[0m C:Requestfile NOT found ! Commands will be copied into c:."
- set cmds "C:"
- endif
- copy Artic_Disk:ar/(adir|artrem) $cmds
- Echo " delete $cmds(adir|artrem)" >>t:un
-
- Echo "MANAGER"
- if $rq EQ "T"
- set aman `requestfile TITLE="Select dir for Manager" DRAWER="sys:Prefs" DRAWERSONLY SAVEMODE`
- get aman >NIL:
- if WARN
- quit
- endif
- else
- Echo "*E[32mWARNING*E[0m C:Requestfile NOT found ! The manager will be copied into SYS:prefs"
- set aman "Sys:Prefs/"
- endif
- copy Artic_Disk:ar/aman#? $aman
- Echo " delete $aman(aman#?)" >>t:un
-
- Echo "HELP FILES"
- if $rq EQ "T"
- set help `requestfile TITLE="Select dir for HelpFiles" DRAWER="s:" DRAWERSONLY SAVEMODE`
- get help >NIL:
- if WARN
- quit
- endif
- else
- Echo "*E[32mWARNING*E[0m C:Requestfile NOT found ! The help files will be copied into S:"
- set help "S:"
- endif
-
- ask "*nDo you want the ITALIAN online help for the manager ?"
- if WARN
- echo "Installing ITALIAN online help"
- copy Artic_Disk:ar/Artic_Manager_ita.guide `get help`Artic_Manager.guide
- else
- echo "Installing ENGLISH online help for the manager."
- copy Artic_Disk:ar/Artic_Manager_eng.guide `get help`Artic_Manager.guide
- endif
- copy Artic_Disk:ar/Artic.guide $help
- copy Artic_Disk:ar/Artic#?.guide.info $help
- echo "$help" >ENVARC:Artic_Help_Path
- echo "$help" >ENV:Artic_Help_Path
- echo " delete $help(Artic#?.guide#?)" >>t:un
- echo " delete ENV:Artic_Help_Path" >>t:un
- echo " delete ENVARC:Artic_Help_Path" >>t:un
-
- echo "endif" >>t:un
-
- Echo "*n*nVersions installed "
- version l:artic FULL
- version `get aman`aman FULL
-
- copy t:un s:Uninstall_Artic
- delete t:un >NIL:
-
- if $tipo EQ "file"
- assign Artic_Disk:
- endif
-
- echo "*n*E[32mInstallation Terminated.*E[0m*n"
- echo "UnInstallation Script has been copied in S:Uninstall_Artic"
- echo "(See Documentation in $help for more information)"
- echo "*nIf you have an old version (<=V1.5) already loaded in memory,"
- echo "please *E[32mRESET*E[0m the machine !"
- echo "*nOtherwise Type *"`get aman`aman*" to start the Manager."
- ask "*nPress Return To Continue"
-
- unset cmds
- unset aman
- unset help
- unset tipo
- unset rq
-
- Else
- echo "ABORTED !"
- EndIf
-
-